package com.mapapp.flutter_mapapp.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.webkit.WebView;
import android.widget.ImageView;

import com.mapapp.flutter_mapapp.R;
import com.mapapp.flutter_mapapp.application.Constants;
import com.mapapp.flutter_mapapp.application.MyApplication;
import com.mapapp.flutter_mapapp.http.Url;
import com.mapapp.flutter_mapapp.util.SharePreferenceUtil;
import com.mapapp.flutter_mapapp.widget.MyWebView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MyDataActivity extends ImmersiveBaseActivity {

    @BindView(R.id.iv_my_data_back)
    ImageView ivMyDataBack;
    @BindView(R.id.wv_my_data)
    MyWebView wvMyData;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_my_data);
        ButterKnife.bind(this);

        String appToken= (String) SharePreferenceUtil.get(MyApplication.getInstance(), Constants.APPTOKEN, "");
        wvMyData.loadUrl(Url.BASE_REPORT_URL+"/#/home?token="+appToken);
    }

    @OnClick(R.id.iv_my_data_back)
    public void back(){
        finish();
    }
}
